1 | dataX = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16] |
---|
2 | dataY = [1,2,3,4,5,6,7,8,9,10,11,12] |
---|
3 | dataE = [1,2,3,4,5,6,7,8,9,10,11,12] |
---|
4 | |
---|
5 | smallDataX = [1,2,3,4] |
---|
6 | smallDataY = [1,2,3] |
---|
7 | smallDataE = [1,2,3] |
---|
8 | |
---|
9 | even = CreateWorkspace(DataX=dataX, DataY=dataY, DataE=dataE, NSpec=4,UnitX="Wavelength") |
---|
10 | odd = CreateWorkspace(DataX=dataX, DataY=dataY, DataE=dataE, NSpec=4,UnitX="Wavelength") |
---|
11 | consecutive = CreateWorkspace(DataX=dataX, DataY=dataY, DataE=dataE, NSpec=4,UnitX="Wavelength") |
---|
12 | |
---|
13 | singleEven = CreateWorkspace(DataX=smallDataX, DataY=smallDataY, DataE=smallDataE, NSpec=1,UnitX="Wavelength") |
---|
14 | singleOdd = CreateWorkspace(DataX=smallDataX, DataY=smallDataY, DataE=smallDataE, NSpec=1,UnitX="Wavelength") |
---|
15 | |
---|
16 | even.getSpectrum(0).setSpectrumNo(0) |
---|
17 | even.getSpectrum(1).setSpectrumNo(2) |
---|
18 | even.getSpectrum(2).setSpectrumNo(4) |
---|
19 | even.getSpectrum(3).setSpectrumNo(6) |
---|
20 | |
---|
21 | odd.getSpectrum(0).setSpectrumNo(1) |
---|
22 | odd.getSpectrum(1).setSpectrumNo(3) |
---|
23 | odd.getSpectrum(2).setSpectrumNo(5) |
---|
24 | odd.getSpectrum(3).setSpectrumNo(7) |
---|
25 | |
---|
26 | consecutive.getSpectrum(0).setSpectrumNo(2) |
---|
27 | consecutive.getSpectrum(1).setSpectrumNo(3) |
---|
28 | consecutive.getSpectrum(2).setSpectrumNo(4) |
---|
29 | consecutive.getSpectrum(3).setSpectrumNo(5) |
---|
30 | |
---|
31 | singleEven.getSpectrum(0).setSpectrumNo(4) |
---|
32 | singleOdd.getSpectrum(0).setSpectrumNo(5) |
---|